import Vue from "vue";
import App from "@/App.vue";
import { router } from "@/router";
import store from "@/store";
// vue原型扩展、ui组件扩展
import "@/libs/augment.js";
import "@/libs/directive.js"; // 扩展弹窗拖拽
// 重置样式，全局样式，字体图标样式
import "@/assets/css/normalize.css";
import "@/assets/css/base.css";
import "@/assets/css/common.scss";
import "@/assets/iconfont/iconfont.css";
import "@/assets/css/element-variables.scss"; // 主题色修改文件
import "@/assets/css/element-common.less"; // 主题色修改文件
import "@/assets/font-awesome/iconfont.css"; // 添加icon 文件
import FormMaking from 'jeeplus-form/dist/JpFormMaking.common'
import 'jeeplus-form/dist/JpFormMaking.css'
import dictUtils from '@/utils/dict'
Vue.prototype.$dictUtils = dictUtils
Vue.use(FormMaking)
Vue.config.productionTip = false;
// Vue.prototype.defaultAvatar = require('./views/home/data/personnel-portrait/images/people.png')
Vue.prototype.$BASE_URL =
    process.env.NODE_ENV !== "production" ?
    process.env.VUE_APP_BASE_API :
    process.env.VUE_APP_SERVER_URL;
// Vue.prototype.$BASE_URL =
//     process.env.NODE_ENV !== "production" ?
//     process.env.VUE_APP_BASE_API :
//     window.location.protocol +
//     "//" +
//     window.location.host +
//     "/service-api";
let vue = new Vue({
    router,
    store,
    render: h => h(App)
}).$mount("#app");
export default vue;